﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace QuanLyDoiXe
{
    public partial class frmquanlydoixe : Form
    {
        public frmquanlydoixe()
        {
            InitializeComponent();
        }
        #region 1. gioithieu
        private void frmquanlydoixe_Load(object sender, EventArgs e)
        {
            Thread th = new Thread(new ThreadStart(GoiFormGioiThieu));
            th.Start();
            Thread.Sleep(1000);
            th.Abort();
            frmlogin frm = new frmlogin();
            frm.ShowDialog();
        }
        void GoiFormGioiThieu()
        {
            frmSplash frm = new frmSplash();
            frm.ShowDialog();
        }
        #endregion
        #region 2. Thoát
        private void frmquanlydoixe_FormClosing_1(object sender, FormClosingEventArgs e)
        {
            DialogResult answer = MessageBox.Show("Bạn Có Muốn Thoát?", "Thông Báo",
                MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (answer == DialogResult.No)
            {
                e.Cancel = true;
            }
        }
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        #endregion
        #region 3. Tiep nhan xe
        private void tiếpNhậnXeMớiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmtiepnhanxe frm = new frmtiepnhanxe();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 4. File
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
        #endregion
        #region 5. Phan cong xe
        private void phânCôngXeTàiXếToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPhancong frm = new frmPhancong();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 6. Cap nhien lieu
        private void cấpNhiênLiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmcapnhienlieu frm = new frmcapnhienlieu();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 7. Tiep nhan dia diem
        private void tiepNhanDiaDiemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmtiepnhandiadiem frm = new frmtiepnhandiadiem();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 8. Hoa Don
        private void hoáĐơnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmchitiethoadon frm = new frmchitiethoadon();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 9. Bao cao quang duong xe chay
        private void quảngĐườngXeChạyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquangduongxechay frm = new frmquangduongxechay();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 10. Bao cao su dung nhien lieu thang
        private void nhiênLiệuHàngThángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmbaocaosudungnhienlieu frm = new frmbaocaosudungnhienlieu();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 11. Bao cao tinh trang giao hang
        private void trạngTháiGiaoHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmbaocaotinhtranggiaohang frm = new frmbaocaotinhtranggiaohang();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 12. Tim hoa don
        private void tsbtkhoadon_Click(object sender, EventArgs e)
        {
            frmtimhoadon frm = new frmtimhoadon();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 14. Tim xe cho tiep nhan
        private void tsbtkxechotiepnhan_Click(object sender, EventArgs e)
        {
            frmtkxechotiepnhan frm = new frmtkxechotiepnhan();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion
        #region 15. Tim dia diem tiep nhan
        private void tsbtkdiadiem_Click(object sender, EventArgs e)
        {
            frmtkdiadiemtiepnhan frm = new frmtkdiadiemtiepnhan();
            frm.MdiParent = this;
            frm.Show();
        }
        #endregion

       
    }
}
